package com.xujl.mvcbind.bean;

import com.xujl.fastlib.utils.DateUtil;
import com.xujl.mvcbind.BR;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

public class AddOverTimeEntity extends BaseObservable {
    private Long id;
    private String date;
    private boolean type;
    private String duration;
    private String remark;

    public AddOverTimeEntity () {
        type = true;
        duration = "1";
        date = DateUtil.getDateToString(System.currentTimeMillis(), DateUtil.Y_M_D_H_M);
    }

    @Bindable
    public String getDate () {
        return date;
    }

    public void setDate (String date) {
        this.date = date;
        notifyPropertyChanged(BR.date);
    }

    @Bindable
    public boolean getType () {
        return type;
    }

    public void setType (boolean type) {
        this.type = type;
        notifyPropertyChanged(BR.type);
    }

    @Bindable
    public String getDuration () {
        return duration;
    }

    public void setDuration (String duration) {
        this.duration = duration;
        notifyPropertyChanged(BR.duration);
    }

    @Bindable
    public String getRemark () {
        return remark;
    }

    public void setRemark (String remark) {
        this.remark = remark;
        notifyPropertyChanged(BR.remark);
    }

    public Long getId () {
        return id;
    }

    public void setId (Long id) {
        this.id = id;
    }
}
